package com.qianyu.project.web.controller.gs;

import com.qianyu.project.service.ITenderProjectInfoService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author gs
 * @date create in 2021/1/31 10:08
 */
@RestController
@RequestMapping("/tenderProjectInfos")
public class TenderProjectInfoController {

    @Autowired
    private ITenderProjectInfoService tenderProjectInfoService;

    @GetMapping("/page")
    public Result getPageList(@RequestParam Map<String, String> params) {
        return ResultTool.success(tenderProjectInfoService.getPageList(params));
    }
}
